<%@ Page Language="C#" AutoEventWireup="true" CodeFile="RecruitersPage.aspx.cs" Inherits="RecruitersPage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:RecruitVietnamDbConnectionString %>"
            SelectCommand="SELECT [RecruiterID], [Email], [CompanyName], [Address] FROM [tblRCAccounts]">
        </asp:SqlDataSource>
    
    </div>
        <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
            DataSourceID="SqlDataSource1" OnPageIndexChanging="GridView1_PageIndexChanging">
            <Columns>
                <asp:BoundField DataField="RecruiterID" HeaderText="RecruiterID" InsertVisible="False"
                    ReadOnly="True" SortExpression="RecruiterID" />
                <asp:HyperLinkField DataNavigateUrlFields="RecruiterID" DataNavigateUrlFormatString="~/DetailsPage.aspx?RecruiterID={0}"
                    DataTextField="Email" HeaderText="Email" />
                <asp:BoundField DataField="CompanyName" HeaderText="CompanyName" SortExpression="CompanyName" />
                <asp:BoundField DataField="Address" HeaderText="Address" SortExpression="Address" />
            </Columns>
        </asp:GridView>
    </form>
</body>
</html>
